#define _CRT_SECURE_NO_WARNINGS 1
#include"SList.hpp"
#include<stdio.h>

int main()
{

	SListNode* list = NULL;
	/*SListPushBack(&list, 1);
	SListPushBack(&list, 2);
	SListPushBack(&list, 3);
	SListPushBack(&list, 4);*/


	//SListPopFront(&list);
	//SListPrint(list);
	//SListPopFront(&list);
	//SListPrint(list);
	//SListPopFront(&list);
	//SListPrint(list);
	//SListPopFront(&list);

	//SListPopBack(&list);
	//SListPrint(list);
	//SListPopBack(&list);

	//SListPrint(list);
	//SListPopBack(&list);

	//SListPrint(list);
	//SListPopBack(&list);

	//SListPrint(list);

	SListPushFront(&list, 1);
	SListPushFront(&list, 2);
	SListPushFront(&list, 3);
	SListPushFront(&list, 4);
	SListPrint(list);


	SListNode* pos = SListFind(list,4);

	//SListEraseAfter(pos, 5);
	SListInsertAfter(pos, 10);

	SListPrint(list);
	SListDestroy(list);
	list = NULL;

	return 0;

}